.piano-main {
  height: calc(100vh - 200px);
  background: #1d1d1d;
  background-image: linear-gradient(to top, #adcefc, #96c4fd);
}

.piano-bottom {
  height: 175px;
  background: #000;
}

.piano-left {
  width: 80%;
  /* background: #1d1d1d; */
  float: left;
  height: calc(100vh - 200px);
}

.piano-right {
  width: 20%;
  float: left;
  background: #fff;
  height: calc(100vh - 200px);
  overflow-y: auto;
  position: relative;
}

.piano-box {
  overflow: hidden;
}

.piano {
  display: flex;
  justify-content: space-between;
  background: #fff;
  width: 100%;
  border: 1px solid #000;
  border-top-width: 3px;
  box-sizing: border-box;
  height: 156px;
  /* overflow: hidden; */
}

.piano-key {
  width: 2%;
  height: 152px;
  outline: 1px solid #444444;
  background-color: white;
  box-sizing: border-box;
  line-height: 240px;
  text-align: center;
  position: relative;
  border-radius: 0 0 2px 2px;
  border-bottom: 5px solid #eeeeee;
}

.piano-key.black {
  border: none;
  color: #ccc;
  font-size: 12px !important;
  height: 90px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5px;
}

.piano-key:active span::after {
  color: #fff !important;
}

.piano-key span::after {
  position: absolute;
  bottom: 36px;
  left: 50%;
  margin-left: -5px;
  display: inline-block;
  width: 10px;
  font-size: 12px;
  line-height: 0;
  text-align: center;
  color: #000;
  writing-mode: tb;
  box-sizing: border-box;
}

.piano-key .LP::after {
  height: 4px;
  content: '.';
}

.piano-key .DLP::after {
  height: 6px;
  content: '..';
}

.piano-key .TLP::after {
  height: 8px;
  content: '...';
}

.piano-key .QLP::after {
  height: 10px;
  content: '....';
}

.zzz span {
  color: #fff;
  font-weight: bold;
  border-radius: 5px;
  background: #000;
  display: inline-block !important;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
}


.piano-key .HP::after {
  height: 4px;
  bottom: 13px;
  content: '.';
}

.piano-key .DHP::after {
  bottom: 10px;
  height: 6px;
  content: '..';
}

.piano-key .THP::after {
  bottom: 8px;
  height: 8px;
  content: '...';
}

.piano-key .QHP::after {
  bottom: 8px;
  height: 8px;
  content: '....';
}

.black {
  width: 0.9%;
  height: 100px;
  margin: 0 -10px;
  background-color: #444444;
  box-sizing: border-box;
  z-index: 2;
  line-height: normal;
  color: #fff;
  writing-mode: inherit;
}


.lyrics {
  color: #333;
  width: 600px;
  margin: 0 auto;
  text-align: center;
  margin-top: 50px;
  padding: 20px;
  padding-top: 20px;
  background: #fff;
  border-radius: 5px;
}

.lyrics-content {
  text-align: left;
  display: flex;
  justify-content: center;
  min-height: 100px;
}

.lyrics-title {
  font-size: 30px;
  margin-bottom: 50px;
  color: #000;
  background: #f86e6e;
  display: inline-block;
  padding: 0 10px;
  color: #fff;
  border-radius: 5px;
}

.chord {
  display: block;
  font-weight: bold;
  color: red;
  cursor: pointer;
  margin-bottom: 10px;
}

.highlighted {
  background: #f86e6e;
  border-bottom: 5px solid #f86e6e;
  color: #333 !important;
}

.song-line {
  display: inline-block;
  margin-right: 10px;
  vertical-align: top;
}

.line {
  margin-bottom: 20px;
}



.tool-box {
  border-top: 1px solid #666;
  background: #444;
  display: flex;
  height: 40px;
  line-height: 40px;
  padding-left: 30px;
}

.tool-box div {
  margin-right: 20px;
  color: #ccc;
  font-size: 12px;
}

.piano-right #todoList {
  height: calc(100vh - 200px);
  overflow-y: auto;
}

.chord-info {
  /*暂时隐藏*/
  display: none;
  padding: 20px;
}

.chord-info div {
  line-height: 30px;
}

.piano-key {
  cursor: pointer;
  -webkit-user-select: none;
}

.piano-key:active {
  background: #000;
  color: #fff !important;
  border-bottom: 5px solid #000;
}

.piano-key.black:active {
  border-bottom: none;
}

.piano-key.active,
.piano-key.active span:after {
  background: red;
  color: #fff !important;
  border-bottom: 5px solid red;
}

/* 主键盘区样式 */
.main-keyboard {
  grid-area: main-keyboard;
  /* 设置主键盘区的区域 */
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  /* 使用相对单位 */
  grid-template-rows: repeat(4, 1fr);
  /* 使用相对单位 */
  gap: 5px;
  border-radius: 5px;
  padding: 5px;
}


/* 小键盘区样式 */
.numpad {
  grid-area: numpad;
  /* 设置小键盘区的区域 */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* 使用相对单位 */
  grid-template-rows: repeat(4, 1fr);
  /* 使用相对单位 */
  gap: 5px;
  border-radius: 5px;
  padding: 5px;
}

/* 键盘容器 */
#keyboard {
  display: grid;
  grid-template-areas:
    "function-keys function-keys"
    "main-keyboard numpad";
  /* 主键盘区和小键盘区并排在两列中 */
  gap: 9px;
  border-radius: 5px;
  background-image: linear-gradient(to top, #f9f9f9, #fff);
  padding: 10px;
  box-sizing: border-box;
  margin: 10px;
  font-size: 12px;
  color: #666;
  user-select: none;
  /* 禁止用户选择文本 */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  -webkit-user-select: none;
  /* Safari */
  margin-top: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
  /* 添加阴影 */
}

/* 功能区样式 */
.function-keys {
  grid-area: function-keys;
  /* 设置功能区的区域 */
  display: flex;
  gap: 15px;
  border-radius: 5px;
  padding: 5px;
}

/* 键盘按键 */
.key {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  /* 默认背景色 */
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 9px;
  /* 调整按键的内边距 */
  font-size: 14px;
  /* 调整按键的字体大小 */
  min-width: 30px;
  /* 设置按键的最小宽度 */
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  /* 添加阴影 */
}


/* 鼠标悬停样式 */
.key:hover {
  background-color: #999;
  color: #fff;
}

.key.active {
  background: red;
  color: #fff;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  /* 减少阴影深度 */
  transform: translate(1px, 1px);
  /* 使按钮向内移动 */
}

.key.colspan2 {
  grid-column: span 2;
  /* 设置Enter键跨越两个列 */
  min-width: 60px;
  /* 修改Enter键的最小宽度 */
}

.key.colspan9 {
  grid-column: span 9;
  /* 设置Enter键跨越两个列 */
  min-width: 60px;
  /* 修改Enter键的最小宽度 */
}

.key.rowspan2 {
  grid-row: span 2
}

.piano-group {
  overflow: hidden;
  border: 1px solid #000;
  border-width: 0 0.1% 0 0.1%;
}

.piano-group li {
  float: left;
  width: auto;
  background: #ccc;
  font-size: 12px;
  color: #333;
}

.group {
  list-style: none;
  /* 去除列表样式 */
  text-align: center;
  margin-top: 3px;
  margin-right: 0.1%;
  box-sizing: border-box;
  white-space: nowrap;
  /* 防止换行 */
}

.group:last-child {
  margin-right: 0;
  /* 去除最后一个元素的右边距 */
}


/*音程*/
.interval {
  padding: 20px;
  box-sizing: border-box;
}

.interval-tips {
  display: none;
  margin-top: 10px;
  color: #9f0000;
}

.interval h2 {
  margin-bottom: 10px;
}

.interval-list {
  /* overflow:hidden; */
  margin-top: 20px;
  min-height: 80px;
}

.interval-btn {
  margin: 10px 0;
  margin-bottom: 50px;
}

.interval-list div {
  float: left;
}

.interval-sound {
  position: relative;
  padding-top: 5px;
  top: 0px;
  font-size: 25px;
  font-family: "poppins", sans-serif;
  width: 110px;
  height: 44px;
  line-height: 44px;
  background-color: #fff;
  border-radius: 3px;
  color: #000;
  text-align: center;
  margin-right: 0px;
}

.interval-name {
  position: relative;
  padding-top: 5px;
  top: 58px;
  left: -6px;
  font-size: 15px;
  font-family: "poppins", sans-serif;
  width: 110px;
  height: 25px;
  background-color: #666;
  border-radius: 3px;
  color: #fff;
  text-align: center;
  font-family: "SimHei";
  margin: 0 -53px 0 -55px;
}

button {
  padding: 8px 16px;
  cursor: pointer;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #fff;
  color: #333;
}

/*电脑键盘映射*/
.keyboard-map {
  position: relative;
  /* position: absolute;
  bottom: 180px; */
  height: 25px;
  line-height: 25px;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
  /* overflow: hidden; */
}

.pc-key-item {
  background: #fff;
  float: left;
  height: 100%;
  width: 1.3%;
  outline: 1px solid #444;
  font-size: 12px;
  text-align: center;
  border-radius: 5px 5px 0 0;
  cursor: pointer;
  box-sizing: border-box;
}

.tantiao {
  animation: bounce 1s ease;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-100px);
  }

  100% {
    transform: translateY(0);
  }
}

/*开关*/
.switch-box {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 28px;
  margin-top: 6px;
  overflow: hidden;
}

.switch-input {
  display: none;
}

.switch-label {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #ccc;
  border-radius: 17px;
  position: relative;
}

.switch-box .txt {
  display: inline-block;
}

.switch-label:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-input:checked+.switch-label {
  background: #007bff;
}

.switch-input:checked+.switch-label:before {
  transform: translateX(34px);
}

.mini-name {
  padding: 20px 0 0 10px;
  color: #333;
}

.state {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 5px;
  vertical-align: middle;
  background-color: #23d96e;
  border-radius: 100%;
  outline: 1px solid #f9f9f9;
}


/*和弦分类*/
.chord-type {
  margin-top: 20px;
  padding: 0 15px;
}

.chord-type-title {
  width: 30px;
  text-align: center;
  font-size: 16px !important;
  background: #efa41b;
  color: #fff;
  font-weight: bold !important;
}

.chord-type-table {
  margin-top: 10px;
  background: #fff;
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f86e6e;
  outline: 2px solid #666;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.chord-type-table td {
  border: 1px solid #eee;
  padding: 10px;
  font-size: 14px;
}

.chordp-type-item {
  display: inline-block;
  padding: 5px 10px;
  background: #f5f5f5;
  color: #666;
  margin-right: 5px;
  margin-bottom: 5px;
}